<?php
namespace Home\Controller;
use Think\Controller;

class LocationController extends Controller{
    public function index(){
        $str=I('get.str','0','strip_tags');

        $data['val']=$str;
         $txt = '  '.date('Y-m-d H:i:s', time()).' position='.$str.'<hr>';
          file_put_contents("local.html",$txt, FILE_APPEND);
       
       


    }

}